package com.mk.springboot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mk.springboot.mapper.CategoryMapper;
import com.mk.springboot.pojo.Category;
import com.mk.springboot.service.CategoryService;
import com.mk.springboot.vo.CategoryPlateVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;


@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService {
    @Override
    public Page<CategoryPlateVO> getCategoryPlate(Page<CategoryPlateVO> page ,String name, Integer plateId) {
        return page.setRecords(this.baseMapper.getCategoryPlate(page, name, plateId));
    }
}
